package cc.sunwl;

import cc.sunwl.simplefactory.Operation;
import cc.sunwl.simplefactory.OperationFactory;
import cc.sunwl.simplefactory.OperationType;

public class App {

    public static void main(String[] args) {
        Operation oper = OperationFactory.createOperate(OperationType.ADD);
        oper.setNumberA(1);
        oper.setNumberB(10);
        double result = oper.getResult();
        System.out.println(result);
    }
}
